.class Lcom/TwinBlade/PicturePassword/bh;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/SaveActivity;


# direct methods
.method constructor <init>(Lcom/TwinBlade/PicturePassword/SaveActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    .line 69
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 72
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/SaveActivity;->a(Lcom/TwinBlade/PicturePassword/SaveActivity;)V

    .line 73
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/SaveActivity;->b(Lcom/TwinBlade/PicturePassword/SaveActivity;)Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 74
    new-instance v0, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-virtual {v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/SaveActivity;->b(Lcom/TwinBlade/PicturePassword/SaveActivity;)Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    .line 75
    invoke-static {}, Lcom/TwinBlade/PicturePassword/SaveActivity;->c()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 76
    new-instance v1, Lcom/TwinBlade/PicturePassword/bk;

    invoke-static {}, Lcom/TwinBlade/PicturePassword/SaveActivity;->d()Landroid/app/Activity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/TwinBlade/PicturePassword/bk;-><init>(Landroid/content/Context;)V

    .line 77
    invoke-virtual {v1, v0}, Lcom/TwinBlade/PicturePassword/bk;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 78
    invoke-virtual {v1}, Lcom/TwinBlade/PicturePassword/bk;->requestFocus()Z

    .line 79
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v2, v4, v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->a(Lcom/TwinBlade/PicturePassword/SaveActivity;Lcom/TwinBlade/PicturePassword/cs;Lcom/TwinBlade/PicturePassword/bk;)Landroid/widget/FrameLayout;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->setContentView(Landroid/view/View;)V

    .line 97
    :goto_0
    return-void

    .line 81
    :cond_0
    sput-boolean v3, Lcom/TwinBlade/PicturePassword/SaveActivity;->b:Z

    .line 82
    new-instance v1, Lcom/TwinBlade/PicturePassword/cs;

    invoke-static {}, Lcom/TwinBlade/PicturePassword/SaveActivity;->d()Landroid/app/Activity;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/TwinBlade/PicturePassword/cs;-><init>(Landroid/content/Context;)V

    .line 83
    invoke-virtual {v1, v0}, Lcom/TwinBlade/PicturePassword/cs;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 84
    invoke-virtual {v1}, Lcom/TwinBlade/PicturePassword/cs;->requestFocus()Z

    .line 85
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v2, v1, v4}, Lcom/TwinBlade/PicturePassword/SaveActivity;->a(Lcom/TwinBlade/PicturePassword/SaveActivity;Lcom/TwinBlade/PicturePassword/cs;Lcom/TwinBlade/PicturePassword/bk;)Landroid/widget/FrameLayout;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->setContentView(Landroid/view/View;)V

    goto :goto_0

    .line 89
    :cond_1
    invoke-static {}, Lcom/TwinBlade/PicturePassword/SaveActivity;->d()Landroid/app/Activity;

    move-result-object v0

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    const v2, 0x7f0900ae

    invoke-virtual {v1, v2}, Lcom/TwinBlade/PicturePassword/SaveActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x4

    invoke-static {v0, v1, v2, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 91
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->c(Lcom/TwinBlade/PicturePassword/SaveActivity;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/TwinBlade/PicturePassword/Image;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 92
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-virtual {v1, v0}, Lcom/TwinBlade/PicturePassword/SaveActivity;->startActivity(Landroid/content/Intent;)V

    .line 94
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/TwinBlade/PicturePassword/SaveActivity;->setResult(I)V

    .line 95
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/bh;->a:Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/SaveActivity;->finish()V

    goto :goto_0
.end method
